Platform Explorer / Nuxeo Platform 2021.52

Component org.nuxeo.ecm.localconf.contentview

Resolution Order

236
The resolution order represents the order in which this component has been resolved by the Nuxeo Runtime framework.
You can influence this order by adding "require" tags in your component declaration, to make sure it is resolved after another component.

Contributions

XML Source

<component name="org.nuxeo.ecm.localconf.contentview">

  <extension target="org.nuxeo.ecm.platform.actions.ActionService"
    point="actions">

    <action id="CONTENT_VIEW_CONFIGURATION"
      link="/incl/tabs/content_view_configuration.xhtml" order="100"
      label="action.view.content.view.configuration" icon="/icons/file.gif">
      <category>LOCAL_CONFIGURATION</category>
      <filter-id>manage</filter-id>
    </action>

  </extension>

  <extension target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager"
    point="widgets">

    <widget name="content_view_selection" type="list">
      <labels>
        <label mode="any">label.local.configuration.content.view.contentViewSelection</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>cvconf:cvNamesByType</field>
      </fields>
      <properties mode="any">
        <property name="hideSubLabels">true</property>
      </properties>
      <subWidgets>
        <widget name="complexListItem" type="complex">
          <labels>
            <label mode="any"></label>
          </labels>
          <fields>
            <field></field>
          </fields>
          <properties mode="any">
            <property name="hideSubLabels">true</property>
            <property name="display">inline</property>
          </properties>
          <subWidgets>
            <widget name="docType" type="selectOneMenu">
              <fields>
                <field>docType</field>
              </fields>
              <labels>
                <label mode="any"></label>
              </labels>
              <selectOptions>
                <options value="#{contentViewConfigurationActions.availableDocTypes}"
                  var="docType" itemValue="#{docType.value}" itemLabel="#{docType.label}" />
              </selectOptions>
            </widget>
            <widget name="contentView" type="selectOneMenu">
              <fields>
                <field>contentView</field>
              </fields>
              <labels>
                <label mode="any"></label>
              </labels>
              <selectOptions>
                <options value="#{contentViewConfigurationActions.availableContentViews}"
                  var="contentView" itemValue="#{contentView.value}" itemLabel="#{contentView.label}" />
              </selectOptions>
            </widget>
          </subWidgets>
        </widget>
      </subWidgets>
    </widget>

  </extension>

  <extension target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager"
    point="layouts">

    <layout name="content_view_configuration">
      <templates>
        <template mode="any">
          /layouts/layout_local_configuration_template.xhtml
        </template>
      </templates>
      <properties mode="any">
        <property name="layoutTemplateToInclude">/layouts/layout_default_template.xhtml</property>
        <property name="foldableBoxLabel">label.local.configuration.contentView</property>
        <property name="localConfigurationFacet">ContentViewLocalConfiguration</property>
        <property name="helpLabel">label.local.configuration.contentView.info</property>
        <property name="elementsToReRender">local_configuration_panel</property>
      </properties>
      <rows>
        <row>
          <widget>content_view_selection</widget>
        </row>
      </rows>
    </layout>

  </extension>

</component>